package com.javakc.pms.order.dispordrls.client;

import com.javakc.commonutils.api.APICODE;
import com.javakc.pms.order.dispordrls.entity.DispOrdRls;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 服务调用接口
 * @FeignClient(name = "service-mes") 服务发现
 * fallback = MesDegradeClinet.class 服务降级
 */
@FeignClient(name = "service-mes" ,fallback = MesDegradeClinet.class)
@Component
public interface MesClient {
    @PostMapping("/mes/dispordrls/save")
    public APICODE save(@RequestBody DispOrdRls dispOrdRls);
}
